Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mojo::cookiejar(3pm) [debian man page]

Mojo::CookieJar(3pm)					User Contributed Perl Documentation				      Mojo::CookieJar(3pm)

NAME
Mojo::CookieJar - Cookie jar for HTTP 1.1 user agents SYNOPSIS
use Mojo::CookieJar; my $jar = Mojo::CookieJar->new; DESCRIPTION
Mojo::CookieJar is a minimalistic and relaxed cookie jar for HTTP 1.1 user agents. ATTRIBUTES
Mojo::CookieJar implements the following attributes. "max_cookie_size" my $max_cookie_size = $jar->max_cookie_size; $jar = $jar->max_cookie_size(4096); Maximum cookie size in bytes, defaults to 4096. METHODS
Mojo::CookieJar inherits all methods from Mojo::Base and implements the following new ones. "add" $jar = $jar->add(@cookies); Add multiple Mojo::Cookie::Response objects to the jar. "empty" $jar->empty; Empty the jar. "extract" $jar = $jar->extract($tx); Extract response cookies from transaction. "find" my @cookies = $jar->find($url); Find Mojo::Cookie::Request objects in the jar for Mojo::URL object. "inject" $jar = $jar->inject($tx); Inject request cookies into transaction. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::CookieJar(3pm)

Check Out this Related Man Page

Mojo::Server::PSGI(3pm) 				User Contributed Perl Documentation				   Mojo::Server::PSGI(3pm)

NAME
Mojo::Server::PSGI - PSGI server SYNOPSIS
use Mojo::Server::PSGI; my $psgi = Mojo::Server::PSGI->new; $psgi->unsubscribe('request'); $psgi->on(request => sub { my ($psgi, $tx) = @_; # Request my $method = $tx->req->method; my $path = $tx->req->url->path; # Response $tx->res->code(200); $tx->res->headers->content_type('text/plain'); $tx->res->body("$method request for $path!"); # Resume transaction $tx->resume; }); my $app = $psgi->to_psgi_app; DESCRIPTION
Mojo::Server::PSGI allows Mojo applications to run on all PSGI compatible servers. See Mojolicious::Guides::Cookbook for more. EVENTS
Mojo::Server::PSGI inherits all events from Mojo::Server. METHODS
Mojo::Server::PSGI inherits all methods from Mojo::Server and implements the following new ones. "run" my $res = $psgi->run($env); Run PSGI. "to_psgi_app" my $app = $psgi->to_psgi_app; Turn Mojo application into PSGI application. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Server::PSGI(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing duplicate files from list with different path

I have a list which contains all the jar files shipped with the product I am involved with. Now, in this list I have some jar files which appear again and again. But these jar files are present in different folders. My input file looks like this /path/1/to a.jar /path/2/to a.jar /path/1/to... (10 Replies)
Discussion started by: vino
10 Replies

2. UNIX for Dummies Questions & Answers

find string in .jar file

Hello, I have a .jar file and am trying to figure out if it is possible to search for some text in all the files in it without extracting it. I was able to do it using jar xf <filename>.jar and then using grep but want a one liner. Thanks in advance:) (8 Replies)
Discussion started by: rakeshou
8 Replies

3. UNIX for Dummies Questions & Answers

how cat i run jar from sh

Hello all im trying to start jar with sh script i have foo.jar and i have this sh that does not work ... #!/bin/sh exec java -cp .;foo.jar com.umen.Main what im doing wrong here ? (10 Replies)
Discussion started by: umen
10 Replies

4. Shell Programming and Scripting

How to create a directory structure with getting input from a file.

Hi How to create a directory structure with getting input from a file. I have file in that following lines are written. ./activemq-4.1.2/activemq-core-4.1.2.jar ./activemq-4.1.2/backport-util-concurrent-2.1.jar ./camel-1.4.0/apache-camel-1.4.0.jar ./camel-1.4.0/lib/activation-1.1.jar... (12 Replies)
Discussion started by: itsjoy2u
12 Replies

5. Shell Programming and Scripting

Error running a .sh script when extracted from a jar file.

I am trying to run a script called install.sh as follows: I get a jar file, and extract it using the command: unzip filename.jar -D path/to/files then I navigate to that directory where I extracted the files, and run the command: sh install.sh (where install.sh is one of the files... (12 Replies)
Discussion started by: albert_newton
12 Replies

6. Solaris

question about jar

hi all, i am using jar as following :- jar cvf file_name.txt.jar file_name.txt but it is file by file my problem is i have i want to run jar on all files in speaific directory what can i do for this this is for the first time the secand time there was files already ended by... (5 Replies)
Discussion started by: xxmasrawy
5 Replies

7. Shell Programming and Scripting

Cut on last backslash on hyperlink string-sed/awk??

hyper link- abc:8081/xyz/2.5.6/rtyp-2.5.6.jar Needs to get "rtyp-2.5.6.jar" i.e character after last backslash "/" how to do this using sed/awk?? help is highly appreciated. (7 Replies)
Discussion started by: kkscm
7 Replies

8. Solaris

How to avoid "cannot execute" issue with a runnable jar file?

I am trying to understand why the runnable jar file runs on one Unix server, but not the other with same environment settings. I copied exact same test jar from here --> http://www.javaworld.com/javaworld/javatips/javatip127/MakeJarRunnable.zip on to both Unix servers. Then changed... (5 Replies)
Discussion started by: kchinnam
5 Replies

9. Programming

How can this jar file open pdf ??

OKay so my question is that how does this jar file convert something in there and show pdf when open it? I don't get how it works. Can someone explain to me. I have a link below, in there will be a file call Tools, and please open the file called "PQ10-sample" it will automaticly open up a pdf as... (11 Replies)
Discussion started by: tonyduong15
11 Replies

10. Shell Programming and Scripting

Want to write all the jar name in single with delimiter ":" in beween the jar name

Hi All, I am having 7 jar files in a dir. abc like listed below bash-3.00$ cd abc bash-3.00$ ls 123.jar 23wdawd.jar dfsa23.jar dsa.jar wew234.jar adsd234234.jar dfsda423.jarNow i want to assign all this jar files to a variable in the below format ... (6 Replies)
Discussion started by: natraj005
6 Replies

11. HP-UX

find command to display size and date of a file

Hi, The blow code does not yeild any output. find . -name "*.jar" -o -name "*.ksh" -o -name "*.properties" -name "*.war" -o -name "*.ear" -o -name "*.sh" -o -name "*.cfg" -exec ls -l {} \; I wish to print the filename filesize filedate in HP-UX. Can anyone help ? (9 Replies)
Discussion started by: mohtashims
9 Replies

12. Shell Programming and Scripting

pattern searching

Hi, Can you please help me out here? I am trying develop a search pattern to extract certain words from the two strings below. I want to extract ericsson_msc_live from the 2 strings and then the date, which is a part of the filename just before the .jar extension. ... (19 Replies)
Discussion started by: danish0909
19 Replies

13. Shell Programming and Scripting

Script to monitor the process

Hi, I need help to monitoring a process using the shell script The same output is below oracle 32578 32577 0 Feb27 ? 00:06:47 java -cp .:lib/ant.jar:lib/ojdbc5.jar:lib/log4j-1.2.17.jar:/ORACLE_HOME/server/lib/wlfullclient.jar:/ORACLE _HOME/server/lib/weblogic.jar:Alerts.jar... (9 Replies)
Discussion started by: ajothi
9 Replies

14. Shell Programming and Scripting

Expansion does not work

Hi, I'm trying to figure out whether some files exist. Locations of those file are stored in a plain text file called temp.txt in this way: All environment variables ($LIB_HOME and $ORACLE_HOME) have been set using export command. Then I do: while read line; do ] && echo "OK ==> $line" ||... (6 Replies)
Discussion started by: AlbertGM
6 Replies

15. Programming

Altering a jar file

I have a script I am trying to test and run but it runs against a jar file. I wrote an external property file so it would redirect with my script, but it keeps going in search of the previous property file. Is there any way to externally over write the jar file and if not how do you go about... (7 Replies)
Discussion started by: risarose87
7 Replies